<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    const arr = ['1', 2, [1, 2, 4]]
    // console.log('打印--', a, b)

    // for (const element of arr.entries()) {
    //   console.log(
    //     '%c [ element ]-14',
    //     'font-size:13px; background:pink; color:#bf2c9f;',
    //     element
    //   )
    // }
    const arr2 = arr.flat(Infinity)
    // console.log(
    //   '%c [ arr2 ]-21',
    //   'font-size:13px; background:pink; color:#bf2c9f;',
    //   arr2,
    //   arr
    // )

    // const backInfo = Promise.resolve(10).then((a) => {
    //   return new Promise((resolve, reject) => {
    //     resolve(a * 5)
    //   })
    // })

    // console.log(
    //   '%c [  ]-34',
    //   'font-size:13px; background:pink; color:#bf2c9f;',
    //   backInfo
    // )

    // const testFn = (...fn1) => {
    //   console.log(
    //     '%c [ fn1 ]-41',
    //     'font-size:13px; background:pink; color:#bf2c9f;',
    //     fn1
    //   )
    // }
    // testFn(1, 3)

    const array1 = ['a', 'b', 'c']
    const iterator = array1.values()
    // console.log(
    //   '%c [ iterator ]-51',
    //   'font-size:13px; background:pink; color:#bf2c9f;',
    //   iterator.next(),
    //   iterator.next()
    // )

    const obj = {}

    const obj1 = Object.create(obj)

    const yuan1 = Object.getPrototypeOf(obj1)
    console.log(
      '%c [ yuan1 ]-59',
      'font-size:13px; background:pink; color:#bf2c9f;',
      yuan1 === obj
    )
  </script>
</html>
